//
//  BasicInforHeadTableViewCell.m
//  marrymarry
//
//  Created by lsj on 16/9/22.
//  Copyright © 2016年 cf. All rights reserved.
//

#import "BasicInforHeadTableViewCell.h"

@implementation BasicInforHeadTableViewCell

- (void)awakeFromNib {
    // Initialization code
   
   
    
    
}

-(void)loadheadPicWithDic:(NSDictionary *)myDic
{
    
//     NSString *picStr = [Tools getValueFromNSUserDefaultsByKey:HEAD_PIC];
//    //取到沙盒路径
//    NSArray * paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
//    NSString * documentsDirectory = [paths objectAtIndex:0];
//    self.headImgView.image = [UIImage imageWithContentsOfFile:[documentsDirectory stringByAppendingPathComponent:picStr]];
    [self.headImgView setImageWithURL:[NSURL URLWithString:myDic[@"user"][HEADPHOTO]]];
    
    self.headImgView.layer.masksToBounds = YES;
    self.headImgView.layer.cornerRadius = self.headImgView.bounds.size.width * 0.5;
    self.headImgView.layer.borderWidth = 5.0;
    self.headImgView.layer.borderColor = [UIColor whiteColor].CGColor;
    self.userIDnumLabel.text =[NSString stringWithFormat:@"用户ID:%@",myDic[@"user"][@"userId"]];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
